package com.kuaimacode.kframework.mybatis.mapper.user;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kuaimacode.kframework.mybatis.models.user.User;
import com.kuaimacode.kframework.mybatis.models.user.UserRole;

public interface UserMapper extends BaseMapper<User> {
	
	

	/**
	 * 根据用户username查询
	 *
	 * @param username 用户username
	 * @return
	 */
	User findByUsername(@Param("username") String username);
	
	
	List<UserRole> getRoles(@Param("userId") Long userId);
	
}